[
<% @resourceOut.each_with_index do |t,index| %>
	<% if t.resourcegroup != nil %>
		{"name":"<font color=\"<%= t.resourcegroup.textcolor%>\"><%= t.name %></font>","id":"<%= t.id %>"} <% if index != @resourceOut.length-1 %> , <%end%>
	<% else %>
		{"name":"<%= t.name %>","id":"<%= t.id %>"} <% if index != @resourceOut.length-1 %> , <%end%>
	<% end %>
<% end %>
]